<!DOCTYPE html>
<html>
	<head>
		<#include "/templates/commons/head.html">
		<script src="${ctx!}/scripts/app/document-page.js" type="text/javascript"></script>
		<style type="text/css">
			.document-img-show {
				height: 85%;
			}
			
			.document-img-show .one-img {
				float: left;
				width: 21.75%;
				height: 30%;
				padding: 0.6%;
				border: 1px solid transparent;
				margin: 0.5%;
				position: relative;
			}
			
			#div-body{
				top: 65px;
			}
			
			.head-btn-group {
				width: 100%;
				text-align: center;
			}
			
			.document-img-show .one-img img {
				width: 100%;
				height: calc(100% - 14px);
			}
			
			.checked-img-flag {
				height: 100% !important;
				position: absolute;
				z-index: 1001;
				left: 0;
				top: 0;
			}
			
			.one-img:hover {
				border: 1px solid #c7c7c7;
			}
			
			.file-name {
				display: block;
				width: 100%;
				height: 14px;
				line-height: 14px;
				font-size: 12px;
				text-align: center;
				word-wrap: break-word;
			}
			
			.layui-breadcrumb {
				margin-left: 0.5%;
				visibility: inherit;
				font-size: 12px;
			}
		</style>
		<script type="text/javascript">
			function query() {
			    $("#dialog-img-group").empty();
			    DocumentPage.load($(".layui-breadcrumb").find("a:last").attr("file-id"));
			}
			
			function ready() {
			    DocumentPage.flow = flow;
			    DocumentPage.load();
			    DocumentPage.initEvent(flow);
			}
			function callbackdata() {
			    var data = DocumentPage.chooseList;
			    /* $.each($(".one-img"), function(i, o) {
				    var $o = $(o);
				    if (typeof $o.attr("checked-img") != 'undefined' && $o.attr("checked-img") == "true") {
						var temp = {};
						temp.path = $o.find("img").attr("path");
						temp.pathShow = $o.find("img").attr("src")
						data.push(temp);
				    }
				}); */
			    return data;
			}
		</script>
	</head>
	<body>
		<div class="head-btn-group">
			<div class="layui-btn-group">
				<input type="button" class="layui-btn create-folder-btn" value="创建文件夹">
				<input type="button" class="layui-btn upload-btn" value="上传文件">
			</div>
		</div>
		<div class="layui-breadcrumb"></div>
		<div id="div-body" class="body">
			<form id="popForm" name="popForm" method="post">
				<input type="hidden" class="choosemore" value="${Request.choosemore!}"/>
				<input type="hidden" class="param_type" value="${Request.param_type!}"/>
				<div id="dialog-img-group" class="document-img-show hid-scroller-body">
				</div>
			</form>
		</div>
	</body>
</html>